package com.citygis.transferdata;

import com.citygis.transferdata.tools.InitSysLoad;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName: TransferDataApplication 
 * @Description: TODO
 * @author: liuzg
 * @Date: 2021/8/31 9:26
 * @Version: v1.0
 */
@Slf4j
@SpringBootApplication
@EnableTransactionManagement
//@MapperScan(value = "com.citygis.transferdata.api")
public class TransferDataApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(TransferDataApplication.class, args);
        log.info("项目启动成功、访问地址：http://127.0.0.1:" + InitSysLoad.PORT + "/"+ "transferData/doc.html");
//        log.info("登录参数：{\"username\":\"admin\",\"password\":\"123456\",\"captcha\":\"\"}");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(TransferDataApplication.class);
    }
}
